import request from '@/utils/request'

export function listpartHead(query) {
  return request({
    url: '/part/partHead/list',
    method: 'get',
    params: query
  })
}

export function createpartHead(data) {
  return request({
    url: '/part/partHead/create',
    method: 'post',
    data
  })
}

export function readpartHead(data) {
  return request({
    url: '/part/partHead/get/' + data.id,
    method: 'get'
  })
}

export function updatepartHead(data) {
  return request({
    url: '/part/partHead/update',
    method: 'post',
    data
  })
}

export function deletepartHead(data) {
  return request({
    url: '/part/partHead/delete',
    method: 'post',
    data
  })
}
